﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddSellInfo.aspx.cs" Inherits="admin_AddSellInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>

       <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>

    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
        </style>

</head>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">销售记录管理</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
    <div style="height:13px; overflow:hidden;"></div>            
    <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
      <tr bgcolor="#b1d5ef">
        <td colspan="2"><asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="14px" ForeColor="Black"></asp:Label></td>
        </tr>

      <tr>
        <td width="120">客户：</td>
        <td>
          <div class="disk_liulan_one">
            <asp:TextBox ID="txtClient" runat="server" ReadOnly="True" Width="80%"></asp:TextBox>
          </div>
          <div class="disk_liulan_tow">
             <asp:Button ID="Button1" runat="server" Text="" CssClass="contact_xuanze" CausesValidation="False" OnClientClick="val = window.showModalDialog ('SelectClient.aspx', '','status:no;center:yes;scroll:yes;resizable:no;help:no;dialogWidth:300px;dialogHeight:300px');document.getElementById('txtClient').value = val[1];document.getElementById('hidClientId').value = val[0];return false;" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtClient"
            Font-Bold="True" ErrorMessage="客户不能为空！">*</asp:RequiredFieldValidator>     
               </div>        </td>
      </tr>
      <tr>

        <td width="120">产品：</td>
        <td>
          <div class="disk_liulan_one">
            <asp:TextBox ID="txtProduct" runat="server" ReadOnly="True" Width="80%"></asp:TextBox>
          </div>
          <div class="disk_liulan_tow">
            <asp:Button ID="Button4" runat="server" Text="" CssClass="contact_xuanze" CausesValidation="False" OnClientClick="val = window.showModalDialog ('SelectProduct.aspx', '','status:no;center:yes;scroll:yes;resizable:no;help:no;dialogWidth:300px;dialogHeight:300px');document.getElementById('txtProduct').value = val[1];document.getElementById('hidProductId').value = val[0];return false;" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtProduct"
            Font-Bold="True" ErrorMessage="产品不能为空！">*</asp:RequiredFieldValidator>       
            </div>        </td>
      </tr>
      <tr>
        <td width="120">销售日期：</td>

        <td>
                <asp:TextBox ID="txtSellDate" runat="server" CssClass="Wdate" onClick="WdatePicker()" Width="80%"></asp:TextBox>  
             </td>
      </tr>
      <tr>
        <td width="120">数量：</td>
        <td>
                <asp:TextBox ID="txtCount" runat="server" Width="80%"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txtCount"
             MinimumValue="0" Type="Integer" ErrorMessage="数量必须是大于0的整数！">*</asp:RangeValidator>   
           </td>

      </tr>
      <tr>
        <td>价格：</td>
        <td>
                 <asp:TextBox ID="txtPrice" runat="server" Width="80%"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtPrice"
                                    MinimumValue="0" Type="Double" ErrorMessage="价格不正确！最多俩位小数！">*</asp:RangeValidator>
           </td>
      </tr>
      <tr>
        <td>折扣：</td>

        <td>
                <asp:TextBox ID="txtAgio" runat="server" Width="80%"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtAgio"
                                    MaximumValue="100" MinimumValue="0" Type="Integer" ErrorMessage="折扣必须是1-100的整数！">*</asp:RangeValidator>    
           </td>
      </tr>
      <tr>
        <td>发货员：</td>
        <td>
          <asp:TextBox ID="txtConsignmentUser" runat="server" Width="80%"></asp:TextBox>
          </td>

      </tr>
      <tr>
        <td>备注：</td>
        <td>
          <asp:TextBox ID="txtRemark" runat="server" Height="50px" TextMode="MultiLine" Width="80%"></asp:TextBox>
           </td>
      </tr>
            
      <tr bgcolor="#b1d5ef">

        <td colspan="2" align="center"><div class="disk_queding_top">
            <asp:Button ID="Button3" runat="server" OnClick="Button2_Click" Text="" CssClass="queding_anniu"/>
        </div>
          <div class="disk_back_top">
              <asp:Button ID="Button2" runat="server" CausesValidation="False" PostBackUrl="~/admin/FindBlurSellInfo.aspx"
                                    Text=""  CssClass="fanhui_anniu"/>
          </div></td>
        </tr>
    </table>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <div style="height:15px; overflow:hidden;"></div>
  </div>
</div>

        <asp:HiddenField ID="hidClientId" runat="server" />
        <asp:HiddenField ID="hidProductId" runat="server" />
    </form>
</body>
</html>
